package com.neusoft.neuiotms.dcvm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.neuiotms.dcvm.repository.AlarmRepository;
import com.neusoft.neuiotms.dcvm.service.AlarmService;

@Service
public class AlarmServiceImpl implements AlarmService {

    @Autowired
    private AlarmRepository alarmRepository;

    @Override
    public void deleteBySourceType(Integer sourceType) {
        this.alarmRepository.deleteBySourceType(sourceType);
        this.alarmRepository.flush();
    }

}
